﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/


using SqlSugar;

namespace ComprehensiveSystem.IRepository.UnitOfWork
{
    public interface IUnitOfWork
    {
        //SqlSugarScope GetDbClient<T>() where T : class;
        ISqlSugarClient GetDbClient<T>() where T : class;

        void BeginTran<T>() where T : class;

        void CommitTran<T>() where T : class;
        void RollbackTran<T>() where T : class;
    }
}